import request from '@/utils/request'

// 查询队伍管理列表
export function listTeam(query) {
  return request({
    url: '/team/team/list',
    method: 'get',
    params: query
  })
}

// 查询队伍管理详细
export function getTeam(teamName) {
  return request({
    url: '/team/team/' + teamName,
    method: 'get'
  })
}

// 新增队伍管理
export function addTeam(data) {
  return request({
    url: '/team/team',
    method: 'post',
    data: data
  })
}

// 修改队伍管理
export function updateTeam(data) {
  return request({
    url: '/team/team',
    method: 'put',
    data: data
  })
}

// 删除队伍管理
export function delTeam(teamName) {
  return request({
    url: '/team/team/' + teamName,
    method: 'delete'
  })
}
